package org.redis.cluster.transport.support;

import org.redis.cluster.transport.protocol.ProtocolEncoder;

public class ByteProtocolEncoder implements ProtocolEncoder {

	@Override
	public byte[] encode(Object value) {
		if(!(value instanceof byte[])) {
			throw new UnsupportedOperationException();
		}
		
		return (byte[]) value;
	}

}